package com.szrt.listener;

import javax.servlet.ServletContextAttributeEvent;
import javax.servlet.ServletContextAttributeListener;


/**
 * 
 * 监听 application 属性  加  减  替换
 * 监听的对象  ServletContext的实现类  application
 * @author zsrt
 *
 */
public class ScottServletContextAttributeListener implements ServletContextAttributeListener {

	
	
	@Override
	public void attributeAdded(ServletContextAttributeEvent event) {
		System.out.println("add...");
	}

	@Override
	public void attributeRemoved(ServletContextAttributeEvent event) {
		System.out.println("remove...");
		
	}

	@Override
	public void attributeReplaced(ServletContextAttributeEvent event) {
		System.out.println("replace...");
		
	}

}
